package org.mics.enduser.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 短信验证码校验
 * @author mics
 * @date 2020年6月10日
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "校验验证码请求")
public class VerificationCodeCheckRequest {
	
    @Schema(description = "账号",required = true)
    @NotBlank(message = "账号不能为空")
    @Size(min = 4, max = 32, message = "账号必须是4-32位")
    private String account;

    @Schema(description = "验证码",required = true)
    @NotBlank(message = "验证码不能为空")
    private String code;

    /**
     * 短信验证码记录id
     */
    @Schema(description = "验证码记录id",required = true)
    @NotBlank(message = "验证码记录id不能为空")
    private String id;


}
